<?php
if (!defined("HDPHP_PATH"))exit('No direct script access allowed');
$base=require APP_CONFIG_PATH.'base.php';
$inc=require APP_CONFIG_PATH.'db.inc.php';
//更多配置请查看hdphp/Config/config.php
$config=array(
    /********************************数据库********************************/
    'DB_DRIVER'                     => 'mysqli',    //数据库驱动
    'DB_CHARSET'                    => 'utf8',      //数据库字符集
    'DB_PREFIX'                     => 'hd_',          //表前缀
    'DB_BACKUP'                     => 'backup/',   //数据库备份目录
    'UPLOAD_PATH'=>"Upload/".date('Y/m/d'),//上传路径
    'TPL_TAGS'=>array('ContentTag'),//开启自定义模版标签
    'URL_TYPE'=>2,
    'Hook'=> array(
        'APP_INIT'=>array('InitHook')
        ),
    'AUTO_LOAD_FILE'=>array('functions.php'),//自动加载函数库

);
//只需前台伪静态  必须创建一个.htaccess隐藏文件入口URL_REWRITE为1表示引入
if ((empty($_GET['m'])||$_GET['m']=='Index') && intval($base['WEB_REWRITE']) ){
    $config['URL_REWRITE']=1;
    $config['ROUTE']=array(
        '/^(\d+).html$/'=>'m=Index&c=Index&a=content&aid=#1',
        '/^list_(\d+).html$/'=>'m=Index&c=Index&a=category&cid=#1'
        );
}

return array_merge($config,$base,$inc);//后者优先级高于前者
?>